package com.gaoxinfu.demo.spring.cloud.jpa.customize.service;

import com.gaoxinfu.demo.spring.cloud.jpa.customize.dto.request.QueryEmpInfoByDeptNoReqDTO;
import com.gaoxinfu.demo.spring.cloud.jpa.customize.dto.response.QueryEmpInfoByDeptNoResDTO;
import com.gaoxinfu.demo.spring.cloud.jpa.customize.util.EntityManagerUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.persistence.EntityManager;

/**
 * @Description:
 * @Author: gaoxinfu
 * @Date: 7/7/21 08:09
 */
@Service
public class EmpService {

    @Resource
    EntityManager entityManager;

    public QueryEmpInfoByDeptNoResDTO queryEmpInfoByDeptNo(QueryEmpInfoByDeptNoReqDTO queryEmpInfoByDeptNoResDTO){
        EntityManagerUtils.query(entityManager,queryEmpInfoByDeptNoResDTO,"",null);
        return null;
    }
}
